import json

def get_Data(json_data):
    test_data = []
    with open(json_data,encoding="utf_8") as obtainedData:

        json_data = json.load(obtainedData)
        for i in json_data:
            login_data = i["login_data"]
            status_code = i.get("status_code")
            success = i["success"]
            code = i["code"]
            message=i["message"]
            test_data.append((login_data, status_code,success,code,message))
    return test_data
print(get_Data("../data/login.json"))